//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.orphan.supplier.po;


import com.baomidou.mybatisplus.annotation.TableName;
import com.orphan.util.dto.PurchaseGoodDto;
import lombok.Data;

@Data
@TableName("t_good")
public class Goods {
    private int id;
//    @Excel(
//            name = "商品描述"
//    )
    private String name;
//    @Excel(
//            name = "系列"
//    )
    private String spec;
//    @Excel(
//            name = "营销小类"
//    )
    private String type;
//    @Excel(
//            name = "库存数量"
//    )
    private Integer quantity;

    public Goods(){}

    public Goods(PurchaseGoodDto purchaseGoodDto) {
        this.name = purchaseGoodDto.getGoodName();
        this.spec = purchaseGoodDto.getGoodSize();
        this.type = purchaseGoodDto.getGoodType();
        this.quantity = Integer.valueOf(purchaseGoodDto.getGoodNum());
    }
}
